home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / qbbs / qbbs276a.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-01-18  |  4KB  |  133 lines

  1. ECHO OFF
  2. CLS
  3. TYPE README.1ST
  4. PAUSE
  5. CLS
  6. ECHO OFF
  7. ECHO This Auto-install process will install QuickBBS into a directory
  8. ECHO called QUICKBBS on drive %2: (%2:\QUICKBBS). It will create
  9. ECHO subdirectories and install configuration files for an operational
  10. ECHO system. If this is not correct, press CTRL-C to abort the
  11. ECHO installation. Otherwise, press any key to continue.
  12. PAUSE > NUL
  13.  
  14. IF %1==E GOTO EXE
  15. IF %1==e GOTO EXE
  16. IF %1==O GOTO OVR
  17. IF %1==o GOTO OVR
  18.  
  19. ECHO You did not specify "O" or "E" on your command line. You must
  20. ECHO specify an E if you would like to have the Executable version
  21. ECHO installed, or an O if you would like to have the Overlay version
  22. ECHO installed. Please try again.
  23. PAUSE
  24. GOTO END
  25.  
  26. :EXE
  27. @ECHO OFF
  28. ECHO The Executable version will be installed.
  29. GOTO CONT
  30.  
  31. :OVR
  32. @ECHO OFF
  33. ECHO The Overlay version will be installed.
  34. GOTO CONT
  35.  
  36. :CONT
  37. echo off
  38. IF NOT EXIST QBBS276T.ZIP GOTO ERROR1
  39. IF NOT EXIST QBBS276U.ZIP GOTO ERROR1
  40. IF NOT EXIST QBBS276D.ZIP GOTO ERROR1
  41. IF %1==E IF NOT EXIST QBBS276E.ZIP GOTO ERROR1
  42. IF %1==e IF NOT EXIST QBBS276E.ZIP GOTO ERROR1
  43. IF %1==O IF NOT EXIST QBBS276O.ZIP GOTO ERROR1
  44. IF %1==o IF NOT EXIST QBBS276O.ZIP GOTO ERROR1
  45. GOTO CONT2
  46.  
  47. :ERROR1
  48. CLS
  49. ECHO The proper release files do not exist in this directory. You need
  50. ECHO to have QBBS276T.ZIP, QBBS276U.ZIP, QBBS276D.ZIP, and either
  51. ECHO QBBS276E.ZIP or QBBS276O.ZIP (whichever you specified on the
  52. ECHO command line) or both in order for the installation to proceed.
  53. PAUSE
  54. GOTO END
  55.  
  56. :CONT2
  57. ECHO Setting up system.... This will take a little while!
  58. MD %2:\QUICKBBS > NUL
  59. MD %2:\QUICKBBS\QUICKBBS > NUL
  60. COPY QBBS276*.* %2:\QUICKBBS\QUICKBBS > NUL
  61. PKUNZIP -D -O %2:\QUICKBBS\QUICKBBS\QBBS276%1.ZIP %2:\QUICKBBS > NUL
  62. IF ERRORLEVEL 1 GOTO ERROR2
  63. PKUNZIP -D -O %2:\QUICKBBS\QUICKBBS\QBBS276U.ZIP %2:\QUICKBBS > NUL
  64. IF ERRORLEVEL 1 GOTO ERROR2
  65. PKUNZIP -D -O %2:\QUICKBBS\QUICKBBS\QBBS276D.ZIP %2:\QUICKBBS > NUL
  66. IF ERRORLEVEL 1 GOTO ERROR2
  67. PKUNZIP -D -O %2:\QUICKBBS\QUICKBBS\QBBS276T.ZIP %2:\QUICKBBS > NUL
  68. IF ERRORLEVEL 1 GOTO ERROR2
  69.  
  70. %2:
  71. CD\QUICKBBS
  72. CLS
  73. ECHO Now I'll run QCONFIG. You'll need to enter the COM port to which your
  74. ECHO modem is attached. After QCONFIG begins press [G][M]. After entering your
  75. ECHO modem information, press [F10] to save it.  Then press [R] [R] to enter
  76. ECHO your name and the name of your system and press [F10] to save it.
  77. ECHO Finally, press [Q][S] to Quit and Save.
  78. PAUSE
  79.  
  80. ALT QUICKCFG.DAT "C:\" "%2:\" > NUL
  81. ALT QUICKCFG.DAT "c:\" "%2:\" > NUL
  82. QCONFIG
  83. CD MENUS
  84.  
  85. ECHO Updating files, please wait...
  86.  
  87. FOR %%m in (*.MNU) do ALT %%m "c:\" "%2:\" > NUL
  88. FOR %%m in (*.MNU) do ALT %%m "C:\" "%2:\" > NUL
  89.  
  90. CD ..
  91.  
  92.  
  93. ECHO Now you're ready to log on. I'll run QuickBBS in local mode so you
  94. ECHO can be the first user in your user log. After you complete the
  95. ECHO logon information, but while you're still online, press [ALT-S] and
  96. ECHO increase your security level to 32,000 so you'll always be the
  97. ECHO first user in the user log.
  98. PAUSE
  99.  
  100. QUICKBBS -L
  101.  
  102. ECHO That's it! You're ready to run your own BBS! Plug in your modem and
  103. ECHO type QUICKBBS[ENTER] when you're ready to start!
  104.  
  105. ECHO Good luck, and welcome from all of us at Pegasus Software!
  106. PAUSE
  107. GOTO END
  108.  
  109. :ERROR2
  110. CLS
  111. IF ERRORLEVEL 52 ECHO Unknown error
  112. IF ERRORLEVEL 51 IF NOT ERRORLEVEL 52 ECHO Unexpected End of File in ZIP File
  113. IF ERRORLEVEL 50 IF NOT ERRORLEVEL 51 ECHO Disk Full
  114. IF ERRORLEVEL 12 IF NOT ERRORLEVEL 50 ECHO Unknown error
  115. IF ERRORLEVEL 11 IF NOT ERRORLEVEL 12 ECHO No files found to extract.
  116. IF ERRORLEVEL 10 IF NOT ERRORLEVEL 11 ECHO Bad or Illegal Parameters Specified
  117. IF ERRORLEVEL 9 IF NOT ERRORLEVEL 10 ECHO File not found; no ZIP files found.
  118. IF ERRORLEVEL 4 IF NOT ERRORLEVEL 9 ECHO Not enough memory
  119. IF ERRORLEVEL 2 IF NOT ERRORLEVEL 4 ECHO Error in ZIP file
  120. IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 ECHO Warning error, such as failed CRC check
  121. ECHO .
  122. ECHO The above error resulted from the attempt to extract the QuickBBS files.
  123. ECHO Please check to make sure you have enough space to install your BBS on
  124. ECHO this drive. If you do, check the integrity of the distribution
  125. ECHO files by making sure the Pegasus Software Authenticity Verification
  126. ECHO seal is intact. Try again when you've corrected the problem.
  127. PAUSE
  128.  
  129. :END
  130. CLS
  131. ECHO Thanks for choosing QuickBBS!
  132.  
  133.